from woniusales_ui_test5_ddt.page.basepage import BasePage
from selenium.webdriver.common.by import By
class HomePage(BasePage):
    loginout_locator=(By.XPATH,'//a[@href="/woniusales/user/logout"]')
    goods_locator=(By.LINK_TEXT,"批次管理")

    def get_loginout_text(self):
        """获取页面的注销按钮的文本"""
        return self.get_text(self.loginout_locator)

    def goto_goodspage(self):
        self.click(self.goods_locator)




